package com.version.manager.controller.shop;

import com.version.manager.controller.BaseController;
import com.version.manager.entity.Shop.shopCategory;
import com.version.manager.model.Msg;
import com.version.manager.service.Shop.shopCategoryService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "shopCategoryController")
@RequestMapping("/api/shop/category")
public class shopCategoryController extends BaseController<shopCategoryService, shopCategory> {

    @Autowired
    private shopCategoryService service;
    @RequestMapping("save")
    @ResponseBody
    public Msg save(@RequestBody shopCategory data){
        return service.save(data);
    }
}
